import http from "./request"; //记得引入进来

class WeightService extends http {
  constructor() {
    super();
    this.baseUrl = "/overWeight"
  }

  getRecommend(body) {
    return this.http({
      method: 'get',
      url: '/getRecommend',
      body
    },
      {
        loading: true
      });
  }

  // 获得推荐偏重
  getRecommendSet(body) {
    return this.http({
      method: 'get',
      url: '/getRecommendSet',
      body
    }, {
      loading: true
    });
  }
  // 修改推荐偏重
  updateRecommendSet(body) {
    return this.http({
      method: 'post',
      url: '/updateRecommendSet',
      body,
      header: {
        "Content-Type": "application/json;charset=UTF-8",
      }
    }, {
      loading: true
    });
  }

  // 获得推荐列表
  getRecommendList(body) {
    return this.http({
      method: 'get',
      url: '/getRecommendList',
      body
    },
      {
        loading: true
      });
  }
}

export default new WeightService();